package com.domain.bean.music;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:网易云音乐用户
 * Author : wangyu
 * Date: 2018-03-02
 * Time: 15:53
 */
@Data
@Entity
@Table(name = "music_user")
public class MusicUser implements Serializable {
    private static final long serialVersionUID = 1046155249183352932L;
    @Column(unique = true)
    private String code;//用户code
    private String nickname;//用户名称
    private Integer grade;//用户等级
    private String sex;//男 女
    private Integer eventCount;//动态数
    private Integer followCount;//关注数
    private Integer fanCount;//粉丝数
    private String selfIntro;//个人介绍
    private String age;//年龄 90后 80后 00后
    private String province;//省
    private String avatarUrl;//头像URL
    private String city;//市
    private String socialUrl = "";//社交网络里链接
    private Integer listenTimes;//听歌次数

    @Column(name="times",columnDefinition="tinyint default 0")
    private Integer times = 0;//爬取次数
    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Long id;//ID
    @Column(name = "create_by",length = 32)
    private String createBy;//创建人
    @Column(name = "create_date")
    private Date createDate;//创建时间
    @Column(name = "update_by",length = 32)
    private String updateBy;//更新人
    @Column(name = "update_date")
    private Date updateDate;//更新时间
    @Version
    private Long version;//版本号
    @Column(name = "del_flag")
    private Boolean delFlag;//删除标记
}
